/* 基础配置 */
* {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.clearDeraction {
  color: black;
  text-decoration: none;
}

.sticky {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
}

.section {
  margin-bottom: 40px;
  border-top: 1px solid #ddd;
  transition: transform 1s, opacity 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}

/* 导航栏，视频 */
nav {
  width: 100%;
  position: relative;
  z-index: 999;
  float: left;
}

#iconTitle::before {
  content: "汇吃糕点";
  color: rgb(192, 128, 10);
  display: inline-block;
  position: relative;
  font-weight: 600;
  padding-right: 10px;
}

/* section1 开屏视频顶层文字显示动画 */
#section-1 {
  position: relative;
  width: 100%;
  height: 100%;
}
video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.8;
}

video::-webkit-media-controls-enclosure {
  display: none;
}

.box {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.box_authour {
  font-family: "HYk2gj";
  letter-spacing: 20px;
  color: orange;
  animation: showEnglish 1s;
  margin: -5px;
}
.box_ad {
  animation: showChina 1.5s;
}
.box_new {
  animation: showBottom 2s;
  padding: 2px 0px;
  cursor: pointer;
}
.box_new:hover {
  color: red;
}

@font-face {
  font-family: "HYk2gj";
  src: url("./fonts/BroadmenRegular-BWEdd.otf");
}
@media screen and (max-width: 630px) {
  .box {
    top: 60%;
  }
}
@media screen and (max-width: 345px) {
  .box {
    top: 70%;
  }
}
@keyframes showEnglish {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}
@keyframes showChina {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
@keyframes showBottom {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* section2 */
#section-2 {
  width: 100%;
  height: 1080px;
  border-top: 1px solid #ddd;
  background-color: orange;
}
/* section3 */
#section-3 {
  width: 100%;
  height: 1080px;
  border-top: 1px solid #ddd;
  background-color: red;
}
